import { request } from '@/utils/request'

/**
 * @dsort 分类表字段查询
 * @return {HttpResponse} result
 */
const  dsort = (params: any  ) => {
    return request('https://sever.sooi.top:8888/sooi/dsort', params, 'post' )
}
const single = (params: any  ) => {
    return request('https://sever.sooi.top:8888/sooi/dsort/single', params, 'post' )
}

/**
 * @dsort 分类中间表/数据/查询
 * @return {HttpResponse} result
 */
const sortcount = (params: any  ) => {          //查询每个有多少条动态
    return request('https://sever.sooi.top:8888/sooi/sort', params, 'post' )
}
const sortdata = (params: any  ) => {           //查询分类ID=？的动态数据
    return request('https://sever.sooi.top:8888/sooi/sort/sort', params, 'post' )
}

export default {
    dsort,
    single,
    sortcount,
    sortdata,
}